{include file="header.php"}

<h2>
	{$blog.title}
</h2>

<div>
	{$blog.created}
</div>

<div>
	{$blog.content}
</div>

<br /><br /><br />
<hr />

{if $comments}
{foreach $comments as $comment}
<h4>{$comment.c_title}</h4>
<div>{$comment.c_comment}</div>
<div>{$comment.c_created}</div>
{/foreach}
{/if}



<br /><br /><br />
<hr />

<form action="{$site_url}?controller=blog&action=view&id={$blog.id}" method="post">
	
	<h3>Submit Comment</h3>
	
	<table>
		
		<tr>
			
			<td><label for="c_title">Title</label></td>
			<td>
				<input type="text" name="c_title" id="c_title" />
			</td>
			
		</tr>
		
		<tr>
			<td><label for="c_comment">Comment</label></td>
			<td>
				<textarea name="c_comment" id="c_comment"></textarea>
			</td>
		</tr>
		
		<tr>
			<td></td>
			<td>
				<input type="submit" name="submit" id="submit" value="Submit Comment" />
			</td>
		</tr>
		
	</table>
	
</form>


{include file="footer.php"}